//20210519  zaq  引入vuex

//应用

//更改用户信息
export const userStatus=(state,uId,uPlanet)=>{
    if(uId==-1 ||uId==null||uId==''||uId=='null'){
        // 登出
        console.log('mutation判断未登录,id:'+uId)
        sessionStorage.setItem("uId",null)
        state.uId=null;
        state.isLogin=false
    }else
    {
        console.log('mutation判断已登录，id：'+uId)
        state.uId=uId
        state.uPlanet=uPlanet
        state.isLogin=true
    }
    console.log("isLogin:"+state.isLogin)
}
export const userPlanet=(state,uPlanet)=>{
    state.uPlanet=uPlanet
}